import Vue from 'vue'

import app from './App.vue'
import VueRouter from 'vue-router'
Vue.use(VueRouter)
import router from './router.js'

// import { Header, Swipe, SwipeItem,Button, Lazyload } from 'mint-ui'
// Vue.component(Header.name,Header);
// Vue.component(Swipe.name, Swipe);
// Vue.component(SwipeItem.name, SwipeItem);
// Vue.component(Button.name, Button);
// Vue.use(Lazyload);
import MintUI from 'mint-ui'
Vue.use(MintUI)
import 'mint-ui/lib/style.css'

import VueResource from 'vue-resource'
Vue.use(VueResource)



Vue.http.options.root = 'http://www.liulongbin.top:3005';
Vue.http.options.emulateJSON = true;

//导入时间插件
import moment from 'moment'
Vue.filter('dateFormat',function (dataStr,pattern = "YYYY-MM-DD HH:mm:ss") {
    return moment(dataStr).format(pattern)
})

import './lib/mui/css/mui.min.css' 
import './lib/mui/css/icons-extra.css'
import './lib/mui/fonts/mui-icons-extra.ttf'
//图片详情，预览图片包的导入
import VuePreview from 'vue-preview'
Vue.use(VuePreview)
import Vuex from 'vuex'
Vue.use(Vuex)

var vm = new Vue({
    el:'#app',
    data:{

    },
    router,
    render: c =>c(app),
    // store:store
})

// var store = new.Vuex.Store({
//     state:{

//     },
//     mutations:{

//     }
// })